<template>
  <el-table
    border
    :data="signList"
  >
    <el-table-column
      label="序号"
      type="index"
      width="60"
      align="center"
    />
    <el-table-column
      label="信号类型"
      prop="signalType"
      width="200"
      align="center"
    />
    <el-table-column label="信号频率(MHz)" prop="signalRate" align="center" />
    <el-table-column label="信号带宽(KHz)" prop="bandwidth" align="center" />
    <el-table-column label="调制方式" prop="debugMode" align="center" />
    <el-table-column label="码速率(MHz)" prop="bitRate" align="center" />
    <el-table-column label="步长(KHz)" prop="step" align="center" />
    <el-table-column label="子载波数" prop="numberOfSubcarriers" align="center" />
    <el-table-column label="操作" width="180" align="center">
      <template #default="{ row }">
        <el-button class="mt-2" size="small" @click="analyse(row)">分析</el-button>
        <el-button class="mt-2" size="small" @click="findDirection(row)">测向</el-button>
        <el-button class="mt-2" size="small" @click="putStorage(row)">入库</el-button>
      </template>
    </el-table-column>
  </el-table>
</template>

<script setup>
const props = defineProps({
  signList: {
    type: Array,
    default: () => [
      { signalType: 100, bitRate: 100, bandwidth: -80 },
      { signalType: 100, bitRate: 101, bandwidth: -80 },
      { signalType: 100, bitRate: 102, bandwidth: -80 },
      { signalType: 100, bitRate: 103, bandwidth: -80 },
      { signalType: 100, bitRate: 104, bandwidth: -80 },
    ]
  }
})
const analyse = () => {}
const findDirection = () => {}
const putStorage = () => {}
</script>